{% if results %}
{% load i18n %}
{% load adminmedia %}
<table cellspacing="0">
<thead>
<tr>
{% for header in result_headers %}<th{{ header.class_attrib }}>
{% if header.sortable %}<a href="{{ header.url }}">{% endif %}
{{ header.text|capfirst }}
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
<th colspan="2">
{% trans 'Ordering' %}
</th>
</tr>
</thead>
<tbody>
{% for result in results %}
<tr class="{% cycle 'row1' 'row2' %}">
    {% for item in result %}{{ item }}{% endfor %}

    -{{ request }}-
    {{ cl.result_list }}

    {% comment %}
        {% for k in cl %}
            {{ k }}
        {% endfor %}
        {% ifnotequal 1 2 %}
            <td width="15" align="center"><a href="move_up/{{ menu_item.pk }}/move_down/"><img src="{% admin_media_prefix %}img/admin/arrow-down.gif" border="0" alt="{% trans 'Down' %}"/></b></td>
        {% else %}
            <td width="15">&nbsp;</td>
        {% endifnotequal %}
        {% ifnotequal 1 2 %}
            <td width="15" align="center"><a href="items/{{ menu_item.pk }}/move_up/"><img src="{% admin_media_prefix %}img/admin/arrow-up.gif" border="0" alt="{% trans 'Up' %}"/></a></td>
        {% else %}
            <td width="15">&nbsp;</td>
        {% endifnotequal %}
    {% endcomment %}

</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
